<script setup>
import { ref, onMounted, onUnmounted } from 'vue'
import { useRouter, RouterLink } from 'vue-router'

const router = useRouter()
const currentUser = ref(null)
const isScrolled = ref(false)
const activeSection = ref('home')
const isLoading = ref(false)

// 加载用户信息
onMounted(() => {
  const userData = localStorage.getItem('user')
  if (userData) {
    currentUser.value = JSON.parse(userData)
  } else {
    // 如果用户未登录，重定向到登录页面
    router.push('/login')
  }
  
  // 添加滚动监听
  window.addEventListener('scroll', handleScroll)
})

onUnmounted(() => {
  window.removeEventListener('scroll', handleScroll)
})

// 处理滚动事件
const handleScroll = () => {
  const scrollPosition = window.scrollY
  isScrolled.value = scrollPosition > 50
  
  // 检测当前活动区域
  const sections = ['home', 'heroes', 'news', 'guides', 'events']
  for (const section of sections) {
    const element = document.getElementById(section)
    if (element) {
      const rect = element.getBoundingClientRect()
      if (rect.top <= 100 && rect.bottom >= 100) {
        activeSection.value = section
        break
      }
    }
  }
}

// 登出功能
const handleLogout = () => {
  // 清除本地存储中的用户信息和token
  localStorage.removeItem('user')
  localStorage.removeItem('token')
  // 重定向到登录页面
  router.push('/login')
}

// 平滑滚动到指定区域
const scrollToSection = (sectionId) => {
  const element = document.getElementById(sectionId)
  if (element) {
    window.scrollTo({
      top: element.offsetTop - 80,
      behavior: 'smooth'
    })
  }
}

// 检查用户是否有付费权限
const checkPremiumAccess = async () => {
  if (!currentUser.value) {
    alert('请先登录以访问阵容攻略')
    router.push('/login')
    return
  }
  
  try {
    isLoading.value = true
    // 检查用户是否有付费权限
    const response = await fetch('http://localhost:3000/api/check-premium', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({ userId: currentUser.value.id })
    })
    
    const result = await response.json()
    if (result.success && result.hasPremiumAccess) {
      // 如果有权限，打开zhenrong.html并传递用户ID
      window.open('http://localhost:3000/zhenrong.html', '_blank')
    } else {
      // 如果没有权限，跳转到支付页面
      window.location.href = 'http://localhost:3000/zhenrong.html'
    }
  } catch (error) {
    console.error('检查付费权限失败:', error)
    alert('网络错误，请稍后再试')
  } finally {
    isLoading.value = false
  }
}
</script>

<template>
  <div class="game-home">

    <!-- 导航栏 -->
    <nav class="game-nav" :class="{ 'nav-scrolled': isScrolled }">
      <div class="nav-content">
        <div class="nav-left">
          <div class="game-brand">
            <div class="logo-container">
              <img src="@/../img/5.webp" alt="金铲铲之战" class="brand-logo" />
              <div class="logo-glow"></div>
            </div>
            <span class="brand-name gradient-text">金铲铲之战</span>
          </div>
        </div>
        <div class="nav-center">
          <ul class="nav-links">
            <li><a href="/home" class="nav-link" :class="{ 'active': activeSection === 'home' }" @click="window.scrollTo({ top: 0, behavior: 'smooth' })">首页</a></li>
            <li><a href="#guides" class="nav-link" @click.prevent="scrollToSection('guides')">阵容攻略</a></li>
            <li><router-link to="/simulator" class="nav-link">阵容模拟</router-link></li>
            <li><a href="#augments" class="nav-link" :class="{ 'active': activeSection === 'augments' }" @click.prevent="scrollToSection('augments')">强化符文</a></li>
            <li><router-link to="/jiban" class="nav-link">羁绊</router-link></li>
            <li><a href="#items" class="nav-link" :class="{ 'active': activeSection === 'items' }" @click.prevent="scrollToSection('items')">装备</a></li>
            <li><a href="#competitions" class="nav-link" :class="{ 'active': activeSection === 'competitions' }" @click.prevent="scrollToSection('competitions')">个人中心</a></li>
          </ul>
        </div>
        <div class="nav-right">
          <div class="user-profile" v-if="currentUser">
            <div class="user-avatar">
              <span class="avatar-letter">{{ currentUser.username.charAt(0).toUpperCase() }}</span>
              <div class="avatar-border"></div>
              <div class="avatar-glow"></div>
            </div>
            <div class="user-info">
              <span class="user-name">{{ currentUser.username }}</span>
              <span v-if="currentUser.premium && new Date(currentUser.premiumExpires) > new Date()" class="premium-indicator">👑</span>
            </div>
            <button class="logout-button" @click="handleLogout">
              <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
                <polyline points="16 17 21 12 16 7"></polyline>
                <line x1="21" y1="12" x2="9" y2="12"></line>
              </svg>
              退出登录
            </button>
          </div>
        </div>
      </div>
    </nav>

    <!-- 主视觉区域 -->
    <section id="home" class="hero-section">
      <!-- 背景图 -->
      <div class="hero-background"></div>
      <!-- 光效直接放在hero-section中 -->
      <div class="hero-glow-1"></div>
      <div class="hero-glow-2"></div>
      <div class="hero-glow-3"></div>
      <!-- 动态光效 -->
      <div class="dynamic-light"></div>
      <div class="hero-content">
        <div class="hero-text">

          <h1 class="hero-title gradient-text">巨星登场 强音回归</h1>
          <p class="hero-subtitle">即刻开启强音对决</p>
          <div class="hero-stats">
            <div class="stat-item hover-lift">
              <span class="stat-number gradient-text">12+</span>
              <span class="stat-label">全新小小英雄</span>
            </div>
            <div class="stat-item hover-lift">
              <span class="stat-number gradient-text">5</span>
              <span class="stat-label">限定音乐节皮肤</span>
            </div>
            <div class="stat-item hover-lift">
              <span class="stat-number gradient-text">限时</span>
              <span class="stat-label">特别活动</span>
            </div>
          </div>
          <div class="hero-actions">
            <button class="play-button hover-lift">立即游戏</button>
            <button class="watch-trailer hover-lift">
              <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                <polygon points="5 3 19 12 5 21 5 3"></polygon>
              </svg>
              观看预告片
            </button>
          </div>
        </div>
        <!-- 主视觉角色展示 -->
        <div class="hero-character">
          <img src="@/../img/4.jpg" alt="金铲铲英雄" class="character-img" />
          <div class="character-glow"></div>
        </div>
      </div>
    </section>

    <!-- 活动区域 -->
    <section id="events" class="events-section">
      <div class="section-header">
        <h2 class="section-title gradient-text">精彩活动</h2>
        <p class="section-subtitle">参与活动赢取丰富奖励</p>
      </div>
      <div class="events-container">
        <div class="event-card hover-lift">
          <div class="event-image">
            <img src="@/../img/1.jpg" alt="音乐节庆典" class="event-img" />
            <div class="event-badge">热门</div>
            <div class="event-overlay"></div>
          </div>
          <div class="event-content">
            <h3 class="event-title">音乐节庆典</h3>
            <p class="event-desc">参与活动赢取限定音乐主题小小英雄和专属装备</p>
            <div class="event-meta">
              <span class="event-time active">进行中</span>
              <span class="event-participants"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg> 12.5万人参与</span>
            </div>
          </div>
          <button class="event-button hover-lift">参与活动</button>
        </div>
        
        <div class="event-card hover-lift">
          <div class="event-image">
            <img src="@/../img/2.jpg" alt="排位冲刺" class="event-img" />
            <div class="event-overlay"></div>
          </div>
          <div class="event-content">
            <h3 class="event-title">排位冲刺</h3>
            <p class="event-desc">达到指定段位获得限定头像框和专属称号</p>
            <div class="event-meta">
              <span class="event-time remaining">剩余7天</span>
              <span class="event-participants"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg> 8.3万人参与</span>
            </div>
          </div>
          <button class="event-button hover-lift">参与活动</button>
        </div>
        
        <div class="event-card hover-lift">
          <div class="event-image">
            <img src="@/../img/3.jpg" alt="新手礼包" class="event-img" />
            <div class="event-overlay"></div>
          </div>
          <div class="event-content">
            <h3 class="event-title">新手礼包</h3>
            <p class="event-desc">新玩家登录即可领取豪华礼包和限定皮肤</p>
            <div class="event-meta">
              <span class="event-time permanent">永久</span>
              <span class="event-participants"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg> 25.7万人参与</span>
            </div>
          </div>
          <button class="event-button hover-lift">参与活动</button>
        </div>
      </div>
    </section>

    <!-- 用户信息和游戏数据区域 -->
    <section id="user-dashboard" class="user-dashboard-section">
      <div class="container">
        <h2 class="section-title">个人游戏数据</h2>
        
        <!-- 用户信息卡片 -->
        <div class="user-info-card cyber-card">
          <div class="user-avatar">
            <div class="avatar-circle">
              <img src="@/../img/5.webp" alt="用户头像" class="avatar-img">
              <div class="avatar-glow"></div>
            </div>
            <div class="user-details">
              <h3 class="username">金铲铲大师</h3>
              <div class="user-rank">
                <span class="rank-badge gold">钻石段位</span>
                <span class="rank-points">8562 分</span>
              </div>
            </div>
          </div>
          <div class="user-stats-summary">
            <div class="summary-item">
              <span class="summary-value">S12</span>
              <span class="summary-label">当前赛季</span>
            </div>
            <div class="summary-item">
              <span class="summary-value">32</span>
              <span class="summary-label">总奖杯</span>
            </div>
            <div class="summary-item">
              <span class="summary-value">18</span>
              <span class="summary-label">连续登录</span>
            </div>
          </div>
        </div>
        
        <div class="dashboard-grid">
          
          <!-- 最近战绩卡片 -->
          <div class="dashboard-card cyber-card hover-lift">
            <h3 class="card-title">最近战绩</h3>
            <div class="recent-matches">
              <div class="match-item win hover-lift" data-tooltip="约德尔人流阵容 - 获得连胜">
                <div class="match-indicator"></div>
                <div class="match-rank">
                  <span class="placement gold">1</span>
                  <span class="rank-badge tiny gold">第1名</span>
                </div>
                <div class="match-info">
                  <span class="composition">约德尔人</span>
                  <span class="match-time">2小时前</span>
                </div>
                <div class="match-stats">
                  <span class="kda positive">KDA: 4.2</span>
                  <span class="stars">★★★</span>
                </div>
                <div class="match-composition-icon" style="background-image: url('/img/6.webp');"></div>
              </div>
              <div class="match-item loss hover-lift" data-tooltip="挑战者阵容 - 后期乏力">
                <div class="match-indicator"></div>
                <div class="match-rank">
                  <span class="placement silver">6</span>
                  <span class="rank-badge tiny silver">第6名</span>
                </div>
                <div class="match-info">
                  <span class="composition">挑战者</span>
                  <span class="match-time">昨天</span>
                </div>
                <div class="match-stats">
                  <span class="kda negative">KDA: 2.1</span>
                  <span class="stars">★</span>
                </div>
                <div class="match-composition-icon" style="background-image: url('/img/7.webp');"></div>
              </div>
              <div class="match-item win hover-lift" data-tooltip="强袭炮手阵容 - 完美运营">
                <div class="match-indicator"></div>
                <div class="match-rank">
                  <span class="placement silver">2</span>
                  <span class="rank-badge tiny silver">第2名</span>
                </div>
                <div class="match-info">
                  <span class="composition">强袭炮手</span>
                  <span class="match-time">2天前</span>
                </div>
                <div class="match-stats">
                  <span class="kda positive">KDA: 3.8</span>
                  <span class="stars">★★★</span>
                </div>
                <div class="match-composition-icon" style="background-image: url('/img/8.webp');"></div>
              </div>
              <div class="match-item win hover-lift" data-tooltip="虚空阵容 - 装备完美">
                <div class="match-indicator"></div>
                <div class="match-rank">
                  <span class="placement gold">1</span>
                  <span class="rank-badge tiny gold">第1名</span>
                </div>
                <div class="match-info">
                  <span class="composition">虚空</span>
                  <span class="match-time">3天前</span>
                </div>
                <div class="match-stats">
                  <span class="kda positive">KDA: 5.6</span>
                  <span class="stars">★★★★</span>
                </div>
                <div class="match-composition-icon" style="background-image: url('/img/9.webp');"></div>
              </div>
            </div>
            <button class="view-more-btn hover-lift">查看更多战绩</button>
          </div>
          
          <!-- 英雄偏好卡片 -->
          <div class="dashboard-card cyber-card hero-preference hover-lift">
            <h3 class="card-title">英雄偏好</h3>
            <div class="preferred-heroes">
              <div class="hero-item hover-lift" data-tooltip="主玩英雄：小法">
                <div class="hero-icon first">
                  <img src="@/../img/6.webp" alt="小法" class="hero-portrait" />
                  <span class="hero-level">3⭐</span>
                </div>
                <span class="hero-name">小法</span>
                <span class="hero-winrate">75%</span>
              </div>
              <div class="hero-item hover-lift" data-tooltip="主玩英雄：金克丝">
                <div class="hero-icon second">
                  <img src="@/../img/7.webp" alt="金克丝" class="hero-portrait" />
                  <span class="hero-level">3⭐</span>
                </div>
                <span class="hero-name">金克丝</span>
                <span class="hero-winrate">68%</span>
              </div>
              <div class="hero-item hover-lift" data-tooltip="主玩英雄：蔚">
                <div class="hero-icon third">
                  <img src="@/../img/8.webp" alt="蔚" class="hero-portrait" />
                  <span class="hero-level">2⭐</span>
                </div>
                <span class="hero-name">蔚</span>
                <span class="hero-winrate">62%</span>
              </div>
              <div class="hero-item hover-lift" data-tooltip="主玩英雄：璐璐">
                <div class="hero-icon">
                  <img src="@/../img/9.webp" alt="璐璐" class="hero-portrait" />
                  <span class="hero-level">2⭐</span>
                </div>
                <span class="hero-name">璐璐</span>
                <span class="hero-winrate">58%</span>
              </div>

            </div>
          </div>
          
          <!-- 赛季目标卡片 -->
          <div class="dashboard-card cyber-card season-goals hover-lift">
            <h3 class="card-title">赛季目标</h3>
            <div class="goal-item hover-lift">
              <div class="goal-icon">🏆</div>
              <div class="goal-header">
                <span class="goal-name gradient-text">达到大师段位</span>
                <span class="goal-progress">68%</span>
              </div>
              <div class="progress-bar">
                <div class="progress-fill" style="width: 68%" data-value="68%"></div>
              </div>
              <span class="goal-reward">奖励: 限定头像框</span>
            </div>
            <div class="goal-item hover-lift">
              <div class="goal-icon">🎯</div>
              <div class="goal-header">
                <span class="goal-name gradient-text">赢得50场胜利</span>
                <span class="goal-progress">48%</span>
              </div>
              <div class="progress-bar">
                <div class="progress-fill" style="width: 48%" data-value="48%"></div>
              </div>
              <span class="goal-reward">奖励: 赛季限定表情</span>
            </div>
            <div class="goal-item hover-lift">
              <div class="goal-icon">📚</div>
              <div class="goal-header">
                <span class="goal-name gradient-text">收集100个英雄</span>
                <span class="goal-progress">85%</span>
              </div>
              <div class="progress-bar">
                <div class="progress-fill" style="width: 85%" data-value="85%"></div>
              </div>
              <span class="goal-reward">奖励: 限定小小英雄</span>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- 游戏简介区域 -->
    <section id="game-intro" class="game-intro-section">
      <div class="container">
        <h2 class="section-title">游戏简介</h2>
        <div class="intro-content">
          <p>《金铲铲之战》的核心玩法是在不断循环的生存之战中部署、升级英雄阵容。你可以从60多个英雄中选择你喜欢的角色，根据他们的职业和种族特质搭配出不同的羁绊效果，增强你的战斗力。你还可以通过选秀、打野、合成等方式获得各种装备，为你的英雄提供更多的属性和技能加成。你需要根据对手的阵容和策略进行灵活的调整和变化，以求在每一轮的对决中占据优势。最后，只有一个玩家能够存活下来，获得胜利。</p>
          
          <ul class="game-tips">
            <li>● 选秀阶段，要根据自己的策略和羁绊选择合适的英雄，同时注意观察对手的阵容，避免和对手抢同样的英雄，导致英雄稀缺。</li>
            <li>● 购买英雄时，要灵活调整自己的金币，保持一定的利息收入，同时不要过分追求升级英雄，要考虑到英雄的羁绊效果和战力平衡。</li>
            <li>● 搭配装备时，要根据英雄的技能和属性选择合适的装备，同时注意装备的叠加效果和特殊效果，给予关键英雄更多的支持。</li>
            <li>● 布阵时，要根据自己的羁绊和对手的阵容进行调整，利用好地形和位置优势，保护好自己的核心英雄，打乱对手的节奏。</li>
          </ul>
          
          <div class="game-images">
            <img src="@/../img/6.webp" alt="游戏截图1" class="game-screenshot" />
            <img src="@/../img/7.webp" alt="游戏截图2" class="game-screenshot" />
            <img src="@/../img/8.webp" alt="游戏截图3" class="game-screenshot" />
            <img src="@/../img/9.webp" alt="游戏截图4" class="game-screenshot" />
            <img src="@/../img/10.webp" alt="游戏截图5" class="game-screenshot" />
          </div>
        </div>
      </div>
      </section>

    <!-- 页脚 -->
    <footer class="game-footer">
      <div class="footer-content">
        <div class="footer-top">
          <div class="footer-brand">
            <img src="@/../img/5.webp" alt="金铲铲之战" class="brand-logo" />
            <span class="brand-name">金铲铲之战</span>
          </div>
        </div>
        
        <div class="footer-bottom">
          <div class="footer-info">
            <span>© 2024 金铲铲之战 版权所有</span>
            <span>|</span>
            <a href="#" class="footer-legal">隐私政策</a>
            <span>|</span>
            <a href="#" class="footer-legal">服务条款</a>
          </div>
        </div>
      </div>
    </footer>
  </div>
</template>

<style scoped>
/* 高级功能相关样式 */
.premium-badge {
  background: linear-gradient(135deg, #d4af37, #ffd700);
  color: #1a0e30;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
  animation: glow 2s infinite alternate;
}

.premium-indicator {
  font-size: 16px;
  margin-left: 5px;
  animation: float 3s ease-in-out infinite;
}

.nav-link.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.nav-link.loading::after {
  content: '...';
  animation: dots 1.5s infinite;
}

@keyframes glow {
  from {
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
  }
  to {
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.6);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes dots {
  0%, 20% {
    content: '.';
  }
  40% {
    content: '..';
  }
  60%, 100% {
    content: '...';
  }
}

/* 全局样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 容器类 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.game-home {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 69, 0, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
}

/* 主视觉区域增强样式 */
.hero-section {
  position: relative;
  padding: 100px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-character {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.character-img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.character-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 150px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.5) 0%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

/* 活动卡片增强样式 */
.event-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(138, 43, 226, 0.3);
}

.event-image {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover .event-img {
  transform: scale(1.05);
}

.event-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.event-card:hover .event-overlay {
  opacity: 0.8;
}

.event-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff4500, #ff6347);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
}

.event-button {
  background: linear-gradient(135deg, #8a2be2, #b967ff);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 15px;
  align-self: flex-start;
}

.event-button:hover {
  background: linear-gradient(135deg, #7b1fa2, #a23ff9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

/* 英雄偏好展示增强 */
.hero-preference .hero-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-preference .hero-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
}

.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(138, 43, 226, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(138, 43, 226, 0.3);
}

.hero-icon.first {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-color: #ffd700;
}

.hero-icon.second {
  background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
  border-color: #c0c0c0;
}

.hero-icon.third {
  background: linear-gradient(135deg, #cd7f32, #d2b48c);
  border-color: #cd7f32;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.9;
}

.hero-level {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
}

.hero-name {
  font-weight: 600;
  font-size: 16px;
}

.hero-winrate {
  font-size: 14px;
  color: #4ade80;
  font-weight: 600;
}

/* 胜率图表样式 */
.win-rate-chart {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 120px;
  margin-bottom: 16px;
  position: relative;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
  border-radius: 8px;
  padding: 10px;
}

.chart-bar {
  width: 80px;
  border-radius: 8px 8px 0 0;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  font-weight: bold;
  min-height: 10px;
}

.chart-bar.success {
  background: linear-gradient(to top, #10b981, #34d399);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.chart-bar::after {
  content: attr(data-value);
  position: absolute;
  top: -25px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.chart-label {
  font-size: 14px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color.success {
  background: #10b981;
}

.legend-color.defeat {
  background: #ef4444;
}
  
  /* 渐变文本效果 */
  .gradient-text {
    background: linear-gradient(135deg, #8a2be2, #ff6347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
  }

/* 仪表板卡片增强样式 */
.cyber-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-card:hover {
  box-shadow: 0 8px 30px rgba(138, 43, 226, 0.2);
  border-color: rgba(138, 43, 226, 0.3);
}

/* 响应式设计增强 */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .hero-text {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-character {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .events-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .event-card {
    margin-bottom: 20px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 悬停效果通用类 */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(138, 43, 226, 0.3);
}

/* 高级导航栏样式 */
.game-nav {
  background: rgba(0, 0, 0, 0.95);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(233, 236, 239, 0.3);
  backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  width: 100%;
  margin: 0;
}

.game-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-brand:hover {
  transform: scale(1.05);
}

.brand-logo {
  width: 45px;
  height: 45px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 8px rgba(138, 43, 226, 0.2));
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 0;
  position: relative;
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: none;
  transform: none;
  box-shadow: none;
  font-weight: normal;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  border: 1px solid rgba(138, 43, 226, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.user-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.2);
  border-color: rgba(138, 43, 226, 0.4);
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a2be2, #b967ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-rank {
  font-size: 12px;
  color: #8a2be2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-name {
  font-weight: 600;
  color: #212529;
  font-size: 14px;
}

.logout-button {
  background: none;
  border: 1px solid #8a2be2;
  color: #8a2be2;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.2s;
}

.logout-button:hover {
  background-color: #8a2be2;
  color: #ffffff;
}

/* 高级主视觉区域 */
.hero-section {
      padding: 80px 40px;
      background: transparent;
      position: relative;
      overflow: hidden;
      width: 100%;
      margin: 0;
    }

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  animation: fadeInUp 1s ease-out;
  text-align: center;
}

.hero-tag {
  font-size: 16px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 16px;
  background: rgba(138, 43, 226, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(138, 43, 226, 0.2);
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  white-space: nowrap;
  background: linear-gradient(135deg, #212529, #8a2be2, #4ecdc4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 24px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(138, 43, 226, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  min-width: 120px;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
  border-color: rgba(138, 43, 226, 0.3);
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #8a2be2, #4ecdc4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.play-button, .watch-trailer {
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.play-button {
  background: linear-gradient(135deg, #8a2be2, #b967ff);
  border: none;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.play-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.play-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(138, 43, 226, 0.4);
}

.play-button:hover::before {
  left: 100%;
}

.watch-trailer {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #ffffff;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.watch-trailer:hover {
  background: #8a2be2;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(138, 43, 226, 0.3);
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.character-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 角色容器样式 */
.character-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* 浮动动画样式 */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* 浮动动画关键帧 */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* 高级活动区域 */
.events-section {
  padding: 100px 40px;
  background: #000000;
  position: relative;
  width: 100%;
  margin: 0;
}

.events-section::before {
  content: none;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
}

.section-subtitle {
  font-size: 20px;
  color: #ffffff;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* 导航栏美化 */
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-container {
  position: relative;
  display: inline-block;
}

.logo-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.5;
  z-index: -1;
  border-radius: 50%;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.user-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-border {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: var(--bg-secondary);
  z-index: 1;
}

.avatar-letter {
  position: relative;
  z-index: 2;
  font-weight: bold;
  color: var(--text-primary);
}

.avatar-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
  animation: avatarGlow 2s ease-in-out infinite;
}

@keyframes avatarGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* 导航链接美化 */
.nav-link {
  position: relative;
  padding: 8px 16px;
  color: #ffffff;
  text-decoration: none;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
  font-weight: normal;
}

/* 活动卡片美化 */
.event-card {
  background: linear-gradient(135deg, rgba(42, 20, 75, 0.9), rgba(18, 18, 53, 0.95));
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-secondary);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

/* 活动卡片内部元素美化 */
.event-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  margin: 0;
  padding: 0;
}

.event-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.5s ease;
  filter: saturate(1.1);
  min-width: 100%;
  max-height: 200px;
}

.event-card:hover .event-img {
  transform: scale(1.05);
}

.event-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
  z-index: 10;
  backdrop-filter: blur(5px);
}

.event-content {
  padding: 24px;
  position: relative;
  z-index: 1;
}

.event-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: none;
  position: relative;
  display: inline-block;
}

.event-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}

.event-desc {
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 1rem;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.event-time.active {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-time.active::before {
  content: '🔥';
  font-size: 1rem;
}

.event-time.remaining {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-time.remaining::before {
  content: '⏰';
  font-size: 1rem;
}

.event-time.permanent {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-participants {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.event-time.permanent::before {
  content: '⭐';
  font-size: 1rem;
}

/* 活动按钮美化 */
.event-button {
  width: 100%;
  background: #ffffff;
  border: none;
  color: #000000;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: none;
  font-size: 1rem;
}

.event-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
  z-index: 0;
}

.event-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}

.event-button:hover::before {
  left: 100%;
}

.event-button:active {
  transform: translateY(0);
}

/* 主视觉区域美化 */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/img/4.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url('/img/4.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 为了确保文字在背景图片上清晰可见，添加半透明叠加层 */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-glow-1, .hero-glow-2, .hero-glow-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow-1 {
  top: 20%;
  left: 15%;
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  animation-delay: 0s;
}

.hero-glow-2 {
  top: 60%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: var(--secondary-color);
  animation-delay: -2s;
}

.hero-glow-3 {
  bottom: -10%;
  left: 40%;
  width: 250px;
  height: 250px;
  background: var(--accent-color);
  animation-delay: -4s;
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--text-primary), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: titleReveal 1s ease-out;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* 用户数据仪表盘 */
.user-dashboard-section {
  padding: 60px 40px;
  background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
  width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.user-dashboard-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6A0DAD, #FF1493, #6A0DAD);
  animation: gradientFlow 8s linear infinite;
  background-size: 400%;
}

/* 赛博朋克卡片基础样式 */
.cyber-card {
  background: rgba(42, 20, 75, 0.8);
  border: 1px solid rgba(106, 13, 173, 0.5);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(106, 13, 173, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.cyber-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(106, 13, 173, 0.1) 50%, transparent 100%);
  pointer-events: none;
}

.cyber-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(106, 13, 173, 0.4);
  border-color: rgba(106, 13, 173, 0.8);
}

.card-title {
  margin-bottom: 20px;
  font-size: 20px;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.card-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #6A0DAD, #FF1493);
}

/* 用户信息卡片 */
.user-info-card {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.user-avatar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-circle {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.username {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.user-rank {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rank-badge {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-badge.tiny {
  padding: 2px 8px;
  font-size: 12px;
}

.rank-badge.gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-badge.silver {
  background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank-points {
  font-size: 14px;
  color: var(--text-secondary);
}

.user-stats-summary {
  display: flex;
  gap: 30px;
}

.summary-item {
  text-align: center;
}

.summary-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #FF1493;
  margin-bottom: 4px;
}

.summary-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 仪表盘网格布局 */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* 统计数据样式 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
}

.stat-item.primary .stat-value {
  color: #9933FF;
}

.stat-item.success .stat-value {
  color: #10b981;
}

.stat-item.accent .stat-value {
  color: #FF1493;
}

.stat-item.warning .stat-value {
  color: #FFD700;
}

.stat-item.info .stat-value {
  color: #3B82F6;
}

.stat-item.secondary .stat-value {
  color: #6B7280;
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 0 10px currentColor;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 最近战绩样式 */
.recent-matches {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

/* 自定义滚动条 */
.recent-matches::-webkit-scrollbar {
  width: 4px;
}

.recent-matches::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.recent-matches::-webkit-scrollbar-thumb {
  background: rgba(106, 13, 173, 0.7);
  border-radius: 2px;
}

.recent-matches::-webkit-scrollbar-thumb:hover {
  background: rgba(106, 13, 173, 1);
}

.match-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.match-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 3px 0 0 3px;
}

.match-item.win .match-indicator {
  background: linear-gradient(180deg, #4ade80, #22c55e);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.match-item.loss .match-indicator {
  background: linear-gradient(180deg, #f87171, #ef4444);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

.match-item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.match-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
}

.match-rank .placement {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  text-shadow: 0 0 10px currentColor;
}

.placement.gold {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.placement.silver {
  color: #c0c0c0;
  text-shadow: 0 0 8px rgba(192, 192, 192, 0.6);
}

.match-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.match-info .composition {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
}

.match-time {
  font-size: 12px;
  color: var(--text-muted);
}

.match-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-right: 12px;
}

.match-stats .kda {
  font-size: 12px;
  font-weight: 600;
}

.kda.positive {
  color: #4ade80;
  text-shadow: 0 0 4px rgba(74, 222, 128, 0.4);
}

.kda.negative {
  color: #f87171;
  text-shadow: 0 0 4px rgba(248, 113, 113, 0.4);
}

.match-stats .stars {
  font-size: 14px;
  color: #FFD700;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
}

.match-composition-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.match-item:hover .match-composition-icon {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(106, 13, 173, 0.5);
}

.view-more-btn {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  background: linear-gradient(135deg, #6A0DAD, #9933FF);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
  position: relative;
  overflow: hidden;
}

.view-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.view-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(106, 13, 173, 0.5);
}

.view-more-btn:hover::before {
  left: 100%;
}

/* 英雄偏好样式 */
.hero-preference .preferred-heroes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.hero-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.hero-item:hover {
  transform: translateY(-5px);
}

.hero-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6A0DAD, #9933FF);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.hero-icon.first {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.5);
}

.hero-icon.second {
  background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
  border-color: rgba(192, 192, 192, 0.5);
}

.hero-icon.third {
  background: linear-gradient(135deg, #CD7F32, #D2B48C);
  box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3);
  border-color: rgba(205, 127, 50, 0.5);
}

.hero-level {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  bottom: -5px;
  right: -5px;
}

.hero-name {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
}

.hero-winrate {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
}

/* 赛季目标样式 */
.season-goals .goal-item {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.season-goals .goal-item:last-child {
  margin-bottom: 0;
}

.goal-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #9933FF, #FF1493);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.goal-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(106, 13, 173, 0.3);
}

.goal-item:hover::before {
  opacity: 1;
}

.goal-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  opacity: 0.5;
  transition: all 0.3s ease;
  z-index: 1;
}

.goal-item:hover .goal-icon {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(153, 51, 255, 0.5));
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-right: 30px;
}

.goal-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.goal-progress {
  font-size: 16px;
  font-weight: 700;
  color: #9933FF;
  text-shadow: 0 0 8px rgba(153, 51, 255, 0.5);
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 5px;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6A0DAD, #FF1493);
    border-radius: 5px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.5);
  }
  
  .progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: progressShimmer 2s infinite;
  }
  
  @keyframes progressShimmer {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }


.goal-reward {
  font-size: 12px;
  color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .user-dashboard-section {
    padding: 40px 20px;
  }
  
  .user-info-card {
    flex-direction: column;
    text-align: center;
  }
  
  .user-avatar {
    flex-direction: column;
  }
  
  .user-stats-summary {
    justify-content: center;
    gap: 20px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-preference .preferred-heroes {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .match-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .match-rank, .match-stats {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-preference .preferred-heroes {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .user-stats-summary {
    flex-direction: column;
    gap: 15px;
  }
}

/* 推荐阵容区域 */
.recommended-comps-section {
  padding: 80px 40px;
  width: 100%;
  margin: 0;
}

.comps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.comp-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 25px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comp-card h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #212529;
}

.champions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.champion-icon {
  width: 50px;
  height: 50px;
  background-color: #8a2be2;
  border-radius: 50%;
}

.view-details {
  width: 100%;
  background-color: transparent;
  border: 2px solid #8a2be2;
  color: #8a2be2;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* 页脚 */
.game-footer {
  background-color: #000000;
  padding: 60px 40px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-info {
  text-align: center;
  font-size: 14px;
  color: #ffffff;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-legal {
  color: #ffffff;
  text-decoration: none;
}

.footer-legal:hover {
  color: #212529;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .game-nav {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .nav-links {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 36px;
    white-space: nowrap;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .hero-actions {
    justify-content: center;
  }
}

/* 简化的按钮样式 */
.play-button {
  /* 基础样式保持，移除动画和效果 */
}

.watch-trailer {
  background: #333;
  /* 移除动画、渐变和模糊效果 */
}

/* 简化的活动卡片 */
.event-card {
  /* 基础样式保持，移除所有效果 */
  background: #1a1a1a;
}

/* 已移除hover特效 */

/* 全局section标题样式 */
.section-header {
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* 统计数据美化 */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* 全局容器样式 */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--secondary-color), var(--primary-color));
}

/* 全局过渡效果 */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

/* 卡片网格布局优化 */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.event-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 18px;
  background: linear-gradient(90deg, #ff6b6b, #ff9ff3);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* 下载按钮增强 */
.download-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(42, 42, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.6s ease;
  z-index: 0;
}

.download-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
  border-color: #9333ea;
  background: linear-gradient(135deg, rgba(29, 16, 63, 0.95) 0%, rgba(49, 25, 105, 0.95) 100%);
}

.download-btn:active {
  transform: scale(0.98);
}

/* 页脚增强 */
.game-footer {
  position: relative;
  overflow: hidden;
}

.game-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #ff9ff3, #5f27cd, #341f97);
  animation: gradientFlow 8s linear infinite;
  background-size: 400%;
}

@keyframes gradientFlow {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* 高级响应式设计 */
@media (max-width: 1200px) {
  .hero-content {
    gap: 60px;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .events-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .game-nav {
    padding: 15px 20px;
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-links {
    justify-content: center;
    gap: 15px;
  }
  
  .hero-section {
    padding: 40px 20px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .events-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .event-card {
    max-width: 100%;
  }
  
  .download-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .download-btn {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
    white-space: nowrap;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .play-button,
  .watch-trailer {
    width: 100%;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .download-title {
    font-size: 32px;
  }
}

/* 高级动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 高级加载状态 */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 高级滚动指示器 */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #8a2be2, #4ecdc4, #ff6b6b);
  transform-origin: left;
  z-index: 9999;
}

/* 高级工具提示 */
.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* 游戏简介样式 */
.game-intro-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
  color: #fff;
}

.intro-content {
  max-width: 1200px;
  margin: 0 auto;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

.game-tips {
  list-style: none;
  padding: 0;
  margin-bottom: 3rem;
}

.game-tips li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #b8c2cc;
  padding-left: 1rem;
}

.game-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.game-screenshot {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.game-screenshot:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .game-images {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

</style>
